package com.nuist.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 梁科
 * @Version 1.0
 * @ Date 2025/10/16 21:46
 */
@TableName(value = "electric")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "电器实体")
public class Electric implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "电器id")
    private Integer id;
    /**
     * 电器对应的数字编号
     */
    @ApiModelProperty(value = "电器编号")
    private Integer electricType;
    /**
     * 电器数字编号所映射的电器名字
     */
    @ApiModelProperty(value = "电器名称")
    private String electricTypeName;
    /**
     * 电量
     */
    @ApiModelProperty(value = "电量")
    private Integer electricCharge;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
}
